package com.toyota.toyotaownerspoc.barcode;

//calculates the correct cropping rectangle in the actual image relative to the guidanceRectangle on the SurfacePreview 
public class guidanceRectangleCoordinatesCalculations {

	private int width; 
	private int height;
	private int guidanceRectangleStartX;
	private int guidanceRectangleStartY;
	private int guidanceRectangleEndX;
	private int guidanceRectangleEndY;
	public guidanceRectangleCoordinatesCalculations(int width, int height) {
		super();
		this.width = width;
		this.height = height;
		//
		this.guidanceRectangleStartX = width/4;
		this.guidanceRectangleStartY = height/20;
		this.guidanceRectangleEndX = width -width/4;
		this.guidanceRectangleEndY = height -height/20;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public int getGuidanceRectangleStartX() {
		return guidanceRectangleStartX;
	}

	public int getGuidanceRectangleStartY() {
		return guidanceRectangleStartY;
	}
	
	public int getGuidanceRectangleEndX() {
		return guidanceRectangleEndX;
	}
	
	public int getGuidanceRectangleEndY() {
		return guidanceRectangleEndY;
	}
	
	
		
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
	
	